include $(top_srcdir)/Makefile.common

AUTOMAKE_OPTIONS = no-dependencies

SUBDIRS=configuration

C_FILES = $(srcdir)/po_hi_driver_linux_serial.c				\
	    $(srcdir)/po_hi_driver_leon_serial.c			\
	    $(srcdir)/po_hi_driver_leon_eth.c				\
	    $(srcdir)/po_hi_driver_sockets.c				\
	    $(srcdir)/po_hi_driver_rtems_ne2000.c			\
	    $(srcdir)/po_hi_driver_rasta_spacewire.c			\
	    $(srcdir)/po_hi_driver_rasta_common.c			\
	    $(srcdir)/po_hi_driver_exarm.c				\
	    $(srcdir)/po_hi_driver_usbbrick_spacewire.c			\
	    $(srcdir)/po_hi_driver_serial_common.c			\
	    $(srcdir)/po_hi_driver_keyboard.c				\
	    $(srcdir)/po_hi_driver_exarm_ni_6071e_analog.c		\
	    $(srcdir)/po_hi_driver_exarm_ni_6071e_digital.c		\
	    $(srcdir)/po_hi_driver_rasta_1553.c				\
	    $(srcdir)/po_hi_driver_xc4v_fpga.c				\
	    $(srcdir)/po_hi_driver_rasta_1553_brmlib.c			\
	    $(srcdir)/po_hi_driver_rasta_serial.c			\
	    $(srcdir)/grspw_api.c $(srcdir)/grspw_pkt_lib.c		\
	    $(srcdir)/config.c $(srcdir)/config_leon3_drvmgr.c		\
	    $(srcdir)/spwrouter_custom_config.c				\
	    $(srcdir)/po_hi_driver_drvmgr_common.c			\
	    $(srcdir)/po_hi_driver_rtems_drvmgr_spacewire.c		\
	    $(srcdir)/po_hi_driver_rtems_drvmgr_serial.c		\
	    $(srcdir)/po_hi_driver_rtems_drvmgr_ethernet.c		\
	    $(srcdir)/config_leon4_n2x.c $(srcdir)/star_dundee_api.c	\
	    $(srcdir)/po_hi_driver_stardundee.c

csrc = ${shell $(CYGPATH_U) '$(OCARINA_RUNTIME)/polyorb-hi-c/src/drivers'}
csrc2 = ${shell $(CYGPATH_U) '$(OCARINA_RUNTIME)/polyorb-hi-c/src'}

install-data-local:
	$(INSTALL) -d $(DESTDIR)$(csrc)
	for f in $(C_FILES); do $(INSTALL) -m 444 $$f $(DESTDIR)$(csrc) ; done
	$(INSTALL) -d $(DESTDIR)$(csrc2)
	for f in $(C_FILES); do $(INSTALL) -m 444 $$f $(DESTDIR)$(csrc2) ; done

uninstall-local:
	rm -rf $(DESTDIR)$(csrc)

EXTRA_DIST = $(C_FILES)

CLEANFILES = *~
